package com.ethink.warehouse.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ethink.warehouse.api.info.MateInventoryOrderMoreInfo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateInventoryOrderInfo;
import com.ethink.warehouse.api.request.MateInventoryOrderQueryRequest;
import com.ethink.warehouse.common.entity.MateInventoryOrder;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 入库/出库单 Mapper接口
 *
 * @author default
 * @date 2022-12-15
 */
@Mapper
public interface MateInventoryOrderMapper extends BaseMapper<MateInventoryOrder> {

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<MateInventoryOrderMoreInfo> queryMateInventoryOrder(Page buildPage, @Param("request") MateInventoryOrderQueryRequest request);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    MateInventoryOrderInfo getMateInventoryOrderById(@Param("id") Long id);

    /**
     * 列表查询
     *
     * @param request
     * @return
     */
    List<MateInventoryOrderMoreInfo> listMateInventoryOrder(@Param("request") MateInventoryOrderQueryRequest request);

}